#include "stdafx.h"
#include "graphics/OpenGLWnd.h"
#include "graphics/Texture.h"	// Added by ClassView
#include "graphics/GrCamera.h"
#include "graphics/GrVector.h"
#include "SGPrismatoid.h"
#include <cmath>

void Haohan(DWORD elasped, DWORD actual, bool bigrigs)
{
	//glPushMatrix();
	//glTranslated(-10,7,-10);
	//CSGPrismatoid(0,0,10,10,10,4,fmod((double)rand(),360),4).Render();
	//glPopMatrix();

	//
	//glPushMatrix();
	//glTranslated(-10,-20,-10);
	//glRotated(180,0,0,1);
	//CSGPrismatoid(0,0,10,10,10,4,fmod((double)rand(),360.0),4).Render();
	//glPopMatrix();

	double x = fmod((double)rand(),360.0);


	glPushMatrix();
	glTranslated(-10,15,-15);
	CSGPrismatoid(0,0,10,10,10,4,x,4).Render();
	glPopMatrix();

	glPushMatrix();
	glTranslated(-10,15,-15);
	glRotated(180,0,0,1);
	CSGPrismatoid(0,0,10,10,10,4,360.0-x,4).Render();
	glPopMatrix();


	//glPushMatrix();
	//glTranslated(-30,7,30);
	//glRotated(fmod((double)rand(),360.0),0,1,0);
	//CSGPrismatoid(10,8,15,12,10,200,0,0).Render();
	//glPopMatrix();
	//

	//glPushMatrix();
	//glTranslated(30,7,-30);
	//glRotated(fmod((double)rand(),360.0),0,1,0);
	//CSGPrismatoid(15,12,10,8,10,200,0,0).Render();
	//glPopMatrix();
};